package for循环;

public class test03 {
    public static void main(String[] args) {
        int num = 0;
        for (int i = 1; i <= 5; i++) {
            num += i;
        }
        System.out.println("1-5的和为" + num);
    }
}
